Skip to main content
Version: 8.4.10.4

OptionImpliedPair

V8 Message Definiton

This table contains current live NBBO prices and implied volatilites as well as greeks and SpiderRock surface volatilities/prices for all call/put pairs in the market.

METADATA

AttributeValue
Topic5030-srse-calculators
MLink TokenInternal
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
okey_atenum - AssetTypePRI'None'cp Call
okey_tsenum - TickerSrcPRI'None'cp Call
okey_tkVARCHAR(12)PRI''cp Call
okey_yrSMALLINT UNSIGNEDPRI, SEC0cp Call
okey_mnTINYINT UNSIGNEDPRI, SEC0cp Call
okey_dyTINYINT UNSIGNEDPRI, SEC0cp Call
okey_xxDOUBLEPRI0cp Call
okey_cpenum - CallPutPRI'Call'cp Call
ticker_atenum - AssetType'None'
ticker_tsenum - TickerSrc'None'
ticker_tkVARCHAR(12)SEC''
uprcFLOAT0underlier price usually midmarket
yearsFLOAT0years to expiration
rateFLOAT0interest rate
sdivFLOAT0sdiv stock dividend rate
ddivFLOAT0cumulative discrete dividend values
symbolRatioFLOAT0effUPrc uprc symbolRatio
strikeRatioFLOAT0effStrike okeyxx strikeRatio
cashOnExerciseFLOAT0cash on exercise multihedge only
xAxisFLOAT0option xAxis moneyness
axisFUPrcFLOAT0option xAxis Fwd UPrc
axisVolRTFLOAT0option xAxis moneyness volatility x sqrtyears
cbidFLOAT0call option bid price
caskFLOAT0call option ask price
cbivFLOAT0volatility implied by option bid price
caivFLOAT0volatility implied by option ask price
catmFLOAT0call option atm volatility from SR surface
cvolFLOAT0call option surface volatility
cprcFLOAT0call option surface price
cdeFLOAT0option delta from cvol
cgaFLOAT0option gamma from cvol
cthFLOAT0option theta from cvol
cveFLOAT0option vega from cvol
croFLOAT0option rho from cvol
cphFLOAT0option phi from cvol
pbidFLOAT0put option bid price
paskFLOAT0put option ask price
pbivFLOAT0volatility implied by option bid price
paivFLOAT0volatility implied by option ask price
patmFLOAT0put option atm volatility from SR surface
pvolFLOAT0put option surface volatility
pprcFLOAT0put option surface price
pdeFLOAT0option delta from pvol
pgaFLOAT0option gamma from pvol
pthFLOAT0option theta from pvol
pveFLOAT0option vega from pvol
proFLOAT0option rho from pvol
pphFLOAT0option phi from pvol
calcErrVARCHAR(24)''option pricing error if any
calcSourceenum - CalcSource'None'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
okey_tk1
okey_yr2
okey_mn3
okey_dy4
okey_xx5
okey_cp6
okey_at7
okey_ts8

SECONDARY INDEX (ExpirationIndex) (Not Unique)

FieldSequence
okey_yr1
okey_mn2
okey_dy3

SECONDARY INDEX (TickerIndex) (Not Unique)

FieldSequence
ticker_tk1

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgOptionImpliedPair` (
`okey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'cp = Call',
`okey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'cp = Call',
`okey_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'cp = Call',
`okey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'cp = Call',
`okey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'cp = Call',
`okey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'cp = Call',
`okey_xx` DOUBLE NOT NULL DEFAULT 0 COMMENT 'cp = Call',
`okey_cp` ENUM('Call','Put','Pair') NOT NULL DEFAULT 'Call' COMMENT 'cp = Call',
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '',
`uprc` FLOAT NOT NULL DEFAULT 0 COMMENT 'underlier price (usually mid-market)',
`years` FLOAT NOT NULL DEFAULT 0 COMMENT 'years to expiration',
`rate` FLOAT NOT NULL DEFAULT 0 COMMENT 'interest rate',
`sdiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'sdiv (stock dividend) rate',
`ddiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'cumulative discrete dividend values',
`symbolRatio` FLOAT NOT NULL DEFAULT 0 COMMENT 'effUPrc = uprc * symbolRatio',
`strikeRatio` FLOAT NOT NULL DEFAULT 0 COMMENT 'effStrike = okey_xx * strikeRatio',
`cashOnExercise` FLOAT NOT NULL DEFAULT 0 COMMENT 'cash on exercise (multihedge only)',
`xAxis` FLOAT NOT NULL DEFAULT 0 COMMENT 'option xAxis moneyness',
`axisFUPrc` FLOAT NOT NULL DEFAULT 0 COMMENT 'option xAxis Fwd UPrc',
`axisVolRT` FLOAT NOT NULL DEFAULT 0 COMMENT 'option xAxis moneyness volatility x sqrt(years)',
`cbid` FLOAT NOT NULL DEFAULT 0 COMMENT 'call option bid price',
`cask` FLOAT NOT NULL DEFAULT 0 COMMENT 'call option ask price',
`cbiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'volatility implied by option bid price',
`caiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'volatility implied by option ask price',
`catm` FLOAT NOT NULL DEFAULT 0 COMMENT 'call option atm volatility (from SR surface)',
`cvol` FLOAT NOT NULL DEFAULT 0 COMMENT 'call option surface volatility',
`cprc` FLOAT NOT NULL DEFAULT 0 COMMENT 'call option surface price',
`cde` FLOAT NOT NULL DEFAULT 0 COMMENT 'option delta (from cvol)',
`cga` FLOAT NOT NULL DEFAULT 0 COMMENT 'option gamma (from cvol)',
`cth` FLOAT NOT NULL DEFAULT 0 COMMENT 'option theta (from cvol)',
`cve` FLOAT NOT NULL DEFAULT 0 COMMENT 'option vega (from cvol)',
`cro` FLOAT NOT NULL DEFAULT 0 COMMENT 'option rho (from cvol)',
`cph` FLOAT NOT NULL DEFAULT 0 COMMENT 'option phi (from cvol)',
`pbid` FLOAT NOT NULL DEFAULT 0 COMMENT 'put option bid price',
`pask` FLOAT NOT NULL DEFAULT 0 COMMENT 'put option ask price',
`pbiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'volatility implied by option bid price',
`paiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'volatility implied by option ask price',
`patm` FLOAT NOT NULL DEFAULT 0 COMMENT 'put option atm volatility (from SR surface)',
`pvol` FLOAT NOT NULL DEFAULT 0 COMMENT 'put option surface volatility',
`pprc` FLOAT NOT NULL DEFAULT 0 COMMENT 'put option surface price',
`pde` FLOAT NOT NULL DEFAULT 0 COMMENT 'option delta (from pvol)',
`pga` FLOAT NOT NULL DEFAULT 0 COMMENT 'option gamma (from pvol)',
`pth` FLOAT NOT NULL DEFAULT 0 COMMENT 'option theta (from pvol)',
`pve` FLOAT NOT NULL DEFAULT 0 COMMENT 'option vega (from pvol)',
`pro` FLOAT NOT NULL DEFAULT 0 COMMENT 'option rho (from pvol)',
`pph` FLOAT NOT NULL DEFAULT 0 COMMENT 'option phi (from pvol)',
`calcErr` VARCHAR(24) NOT NULL DEFAULT '' COMMENT 'option pricing error (if any)',
`calcSource` ENUM('None','Tick','Loop') NOT NULL DEFAULT 'None',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`okey_tk`,`okey_yr`,`okey_mn`,`okey_dy`,`okey_xx`,`okey_cp`,`okey_at`,`okey_ts`),
KEY `ExpirationIndex` (`okey_yr`,`okey_mn`,`okey_dy`) USING HASH,
KEY `TickerIndex` (`ticker_tk`) USING HASH
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='This table contains current live NBBO prices and implied volatilites as well as greeks and SpiderRock surface volatilities/prices for all call/put pairs in the market.';

SELECT TABLE EXAMPLE QUERY

SELECT
`okey_at`,
`okey_ts`,
`okey_tk`,
`okey_yr`,
`okey_mn`,
`okey_dy`,
`okey_xx`,
`okey_cp`,
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`uprc`,
`years`,
`rate`,
`sdiv`,
`ddiv`,
`symbolRatio`,
`strikeRatio`,
`cashOnExercise`,
`xAxis`,
`axisFUPrc`,
`axisVolRT`,
`cbid`,
`cask`,
`cbiv`,
`caiv`,
`catm`,
`cvol`,
`cprc`,
`cde`,
`cga`,
`cth`,
`cve`,
`cro`,
`cph`,
`pbid`,
`pask`,
`pbiv`,
`paiv`,
`patm`,
`pvol`,
`pprc`,
`pde`,
`pga`,
`pth`,
`pve`,
`pro`,
`pph`,
`calcErr`,
`calcSource`,
`timestamp`
FROM `SRAnalytics`.`MsgOptionImpliedPair`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`okey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`okey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`okey_tk` = 'Example_okey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`okey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`okey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`okey_dy` = 1
AND
/* Replace with a DOUBLE */
`okey_xx` = 4.56
AND
/* Replace with a ENUM('Call','Put','Pair') */
`okey_cp` = 'Call';

Doc Columns Query

SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='OptionImpliedPair' ORDER BY ordinal_position ASC;